<?php /* Smarty version 2.6.26, created on 2014-10-23 16:30:14
         compiled from edit.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script charset="utf-8" src="<?php echo @__ROOT__; ?>
Blog/Admin/Org/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="<?php echo @__ROOT__; ?>
Blog/Admin/Org/kindeditor/lang/zh_CN.js"></script>
	<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
	</script>
</head>
<body>
	<form action="" method="post" enctype="multipart/form-data">
		<input type="hidden" value="<?php echo $this->_tpl_vars['blog']['bid']; ?>
" name="bid">
		<table border="1" width="100%" height="100%" cellpadding="0" cellspacing="0">
			<tr>
				<th>标题</th>
				<td><input type="text" name="title" value="<?php echo $this->_tpl_vars['blog']['title']; ?>
"></td>
			</tr>
			<tr>
				<th>栏目</th>
				<td>
					<select name="cid" id="">
					<?php unset($this->_sections['d']);
$this->_sections['d']['loop'] = is_array($_loop=$this->_tpl_vars['cate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['d']['name'] = 'd';
$this->_sections['d']['show'] = true;
$this->_sections['d']['max'] = $this->_sections['d']['loop'];
$this->_sections['d']['step'] = 1;
$this->_sections['d']['start'] = $this->_sections['d']['step'] > 0 ? 0 : $this->_sections['d']['loop']-1;
if ($this->_sections['d']['show']) {
    $this->_sections['d']['total'] = $this->_sections['d']['loop'];
    if ($this->_sections['d']['total'] == 0)
        $this->_sections['d']['show'] = false;
} else
    $this->_sections['d']['total'] = 0;
if ($this->_sections['d']['show']):

            for ($this->_sections['d']['index'] = $this->_sections['d']['start'], $this->_sections['d']['iteration'] = 1;
                 $this->_sections['d']['iteration'] <= $this->_sections['d']['total'];
                 $this->_sections['d']['index'] += $this->_sections['d']['step'], $this->_sections['d']['iteration']++):
$this->_sections['d']['rownum'] = $this->_sections['d']['iteration'];
$this->_sections['d']['index_prev'] = $this->_sections['d']['index'] - $this->_sections['d']['step'];
$this->_sections['d']['index_next'] = $this->_sections['d']['index'] + $this->_sections['d']['step'];
$this->_sections['d']['first']      = ($this->_sections['d']['iteration'] == 1);
$this->_sections['d']['last']       = ($this->_sections['d']['iteration'] == $this->_sections['d']['total']);
?>
						<option value="<?php echo $this->_tpl_vars['cate'][$this->_sections['d']['index']]['cid']; ?>
" <?php echo $this->_tpl_vars['cate'][$this->_sections['d']['index']]['s']; ?>
><?php echo $this->_tpl_vars['cate'][$this->_sections['d']['index']]['catname']; ?>
</option>
					<?php endfor; endif; ?>
					</select>
				</td>
			</tr>
			<tr>
				<th>缩略图</th>
				<td>
				<input type="hidden" name="thumb" value="<?php echo $this->_tpl_vars['blog']['thumb']; ?>
">
				<?php if ($this->_tpl_vars['blog']['thumb']): ?>
					<img src="<?php echo @__ROOT__; ?>
<?php echo $this->_tpl_vars['blog']['thumb']; ?>
" alt="" width="50px" height="30px">
				<?php endif; ?>
				<input type="file" name="thumb">
				</td>
			</tr>
			<tr>
				<th>正文</th>
				<td>
					<textarea id="editor_id" name="content" style="width:700px;height:300px;">
						<?php echo $this->_tpl_vars['blog']['content']; ?>

					</textarea>
				</td>
			</tr>
			<tr>
				<th>点击数</th>
				<td><input type="text" name="click" value="<?php echo $this->_tpl_vars['blog']['click']; ?>
"></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="提交更新"></td>
			</tr>
		</table>
	</form>
</body>
</html>